@use './mixins.scss' as *;

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-family-base);
  color: var(--text-primary);
  background: var(--bg-body);
}

body {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg-body);
}

.page-card {
  @include card;
  padding: var(--spacing-lg);
}

.page-header {
  margin-bottom: var(--spacing-lg);

  &__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
  }

  &__desc {
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
  }
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md) var(--spacing-lg);

  @include respond(md) {
    grid-template-columns: 1fr;
  }
}
